import CryptoJS from 'crypto-js';

export function decryptAES(encryptedText, key) {
    const bytes = CryptoJS.AES.decrypt(encryptedText, key);
    const originalText = bytes.toString(CryptoJS.enc.Utf8);
    return originalText;
}